From fed6ed29b093cc6c717fefb1aad192f45bbb4149 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 1 Apr 2009 13:12:13 +0100 Subject: [PATCH] ia64: Fix the build after max_cstate changes. Signed-off-by: Keir Fraser --- xen/drivers/acpi/pmstat.c | 4 ++-- xen/include/asm-x86/config.h | 1 + xen/include/xen/acpi.h | 4 +--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/xen/drivers/acpi/pmstat.c b/xen/drivers/acpi/pmstat.c index 8125e88951..33954307d7 100644 --- a/xen/drivers/acpi/pmstat.c +++ b/xen/drivers/acpi/pmstat.c @@ -530,13 +530,13 @@ int do_pm_op(struct xen_sysctl_pm_op *op) case XEN_SYSCTL_pm_op_get_max_cstate: { - op->get_max_cstate = max_cstate; + op->get_max_cstate = acpi_get_cstate_limit(); break; } case XEN_SYSCTL_pm_op_set_max_cstate: { - max_cstate = op->set_max_cstate; + acpi_set_cstate_limit(op->set_max_cstate); break; } diff --git a/xen/include/asm-x86/config.h b/xen/include/asm-x86/config.h index 9d140ef891..3e05dbf0bb 100644 --- a/xen/include/asm-x86/config.h +++ b/xen/include/asm-x86/config.h @@ -35,6 +35,7 @@ #define CONFIG_ACPI_SLEEP 1 #define CONFIG_ACPI_NUMA 1 #define CONFIG_ACPI_SRAT 1 +#define CONFIG_ACPI_CSTATE 1 #define CONFIG_VGA 1 diff --git a/xen/include/xen/acpi.h b/xen/include/xen/acpi.h index cbf795aeaf..43bdade6c4 100644 --- a/xen/include/xen/acpi.h +++ b/xen/include/xen/acpi.h @@ -402,9 +402,7 @@ static inline int acpi_blacklisted(void) #endif /*!CONFIG_ACPI_INTERPRETER*/ -#define ACPI_CSTATE_LIMIT_DEFINED /* for driver builds */ -#ifdef CONFIG_ACPI - +#ifdef CONFIG_ACPI_CSTATE /* * Set highest legal C-state * 0: C0 okay, but not C1 -- 2.30.2